if __name__ == '__main__':
    import re

    print(re.split('\\D+', 'A123X456Y7A,302ATB567BC'))
    print(re.split('\\d+', 'A123X456Y7A,302ATB567BC'))